/*
	File:		Enemy.cpp
	Author:		Ben Feldmann
	Purpose:	Base class for game enemies
*/

#include "Enemy.h"
#include "SGD Wrappers\CSGD_TextureManager.h"
#include "EventSystem.h"


Enemy::Enemy() 
{
	EventSystem::GetInstance()->RegisterClient("target_hit", this);
}

Enemy::~Enemy()
{
	EventSystem::GetInstance()->UnregisterClientAll(this);
}

void Enemy::Update()
{
}

//void Enemy::Render()
//{
//	if(GetImageID() != -1)
//	{
//		CSGD_TextureManager::GetInstance()->Draw(GetImageID(), int(GetX()), int(GetY()));
//	}
//}

//RECT Enemy::GetRect()
//{
//	RECT rect = {LONG(GetX()), LONG(GetY()), LONG(GetX()+GetWidth()), LONG(GetY()+GetHeight())};
//	return rect;
//}

//bool Enemy::CheckCollision(IEntity* base)
//{
//
//}

void Enemy::Attack()
{
}

void Enemy::HandleEvent(Event* thisEvent)
{
}